package com.wuren.faceSwiping.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wuren.faceSwiping.product.entity.Introduce;
import com.wuren.faceSwiping.product.mapper.IntroduceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IntroduceService extends ServiceImpl<IntroduceMapper, Introduce> {
    @Autowired
    private IntroduceMapper introduceMapper;
    /**
     * 查所有信息
     * @return
     */
    public List findAll(){
        QueryWrapper q = new QueryWrapper();
        List list = introduceMapper.selectList(q);
        System.out.println(list);
        return list;
    }
}